package com.fliad.ai.entity;

import lombok.Data;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;
import org.dromara.autotable.annotation.PrimaryKey;

import java.util.Date;

/**
 * 文档
 *
 * @author wyl
 * @date 2025年05月22日 下午8:38
 */
@Data
@AutoTable(comment = "文档")
public class AiDocument {

    @PrimaryKey()
    private Long id;

    @AutoColumn(comment = "知识库ID")
    private Long knowledgeId;

    @AutoColumn(length = 256, comment = "文档key，可以根据key获取到对应的文档")
    private String fileKey;

    @AutoColumn(length = 256, comment = "标题")
    private String title;

    @AutoColumn(length = 256, comment = "内容")
    private String content;

    @AutoColumn(length = 256, comment = "其他配置项")
    private String options;

    @AutoColumn(length = 256, comment = "附加元数据")
    private String meta;

    private Date created;
    private Long createdBy;
    private Date modified;
    private Long modifiedBy;

}
